home *** CD-ROM | disk | FTP | other *** search
- Subject: Re:Using Counted Ptr objects and Collections?
- Sent: 7/15/96 10:17 AM
- Received: 7/15/96 10:21 AM
- From: Mark Lanett, mlanett@meer.net
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >Itrat Khan wrote:
- >
- >> I'm using an object that I wish to be both reference-counted (pointer
- >> based using FW_TCountedPtr) and part of an ordered collection
- >> (FW_TOrderedCollection). Here are the problems I run into (pretend my
- >> object's type is called CMyClass):
-
- [Assuming your reference is called CMyClass and your representation is
- called CMyRep...]
-
- There is an entirely different approach, which is to use the STL. You can
- insert instances (not pointers) of CMyClass into STL collections, and they
- will properly manage the representation objects.
-
- In general we recommend you use the STL and not use the ODF collections
- when possible. When all supported compilers ship with the STL then we will
- change ODF to use it, although the old ODF collections will still be
- present for backwards compatability.
-
-
- --
- Mark Lanett, OpenDoc Framework, Apple Computer
-
-
-